package string;

public class StringDemo {
    public static void main(String[] args) {
//        String s1="123abc";
//        String s2="123abc";
//        System.out.println(s1==s2);
        String s1="123abc";
        String s2="123"+"abc";
        System.out.println(s1==s2);
        String s3="123";
        String s4=s3+"abc";
        System.out.println(s1==s4);

        String s=new String("Hello");
        String ss="Hello";
        System.out.println(s.equals(ss));
        System.out.println(s1.equals(s2));


    }


}
